Tables [dbo].[LicenseMaster]
Properties
PropertyValue
Created10:31:26 AM Tuesday, March 02, 2010
Last Modified1:20:15 PM Thursday, February 23, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_LicenseMaster: LicenseMasterKeyLicenseMasterKeyuniqueidentifier16
No
Foreign Keys FK_LicenseMaster_License: [dbo].[License].LicenseKeyIndexes IX_LicenseMaster_LicenseKey: LicenseKeyLicenseKeyuniqueidentifier16
No
Foreign Keys FK_LicenseMaster_LicenseOrganization: [dbo].[LicenseOrganization].LicenseOrganizationKeyIndexes IX_LicenseMaster_LicenseOrganizationKey: LicenseOrganizationKeyLicenseOrganizationKeyuniqueidentifier16
No
NamedLicenseCountint4
No
((0))
UnnamedLicenseCountint4
No
((0))
Checksumnvarchar(250)500
No
((0))
EffectiveDatedatetime8
No
ExpirationDatedatetime8
Yes
Foreign Keys FK_LicenseMaster_UserMain_CreatedBy: [dbo].[UserMain].CreatedByUserKeyIndexes IX_LicenseMaster_CreatedByUserKey: CreatedByUserKeyCreatedByUserKeyuniqueidentifier16
No
CreatedOndatetime8
No
Foreign Keys FK_LicenseMaster_UserMain_UpdatedBy: [dbo].[UserMain].UpdatedByUserKeyIndexes IX_LicenseMaster_UpdatedByUserKey: UpdatedByUserKeyUpdatedByUserKeyuniqueidentifier16
No
UpdatedOndatetime8
No
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_LicenseMaster: LicenseMasterKeyPK_LicenseMasterLicenseMasterKey
Yes
IX_LicenseMaster_CreatedByUserKeyCreatedByUserKey
IX_LicenseMaster_LicenseKeyLicenseKey
IX_LicenseMaster_LicenseOrganizationKeyLicenseOrganizationKey
IX_LicenseMaster_UpdatedByUserKeyUpdatedByUserKey
Foreign Keys Foreign Keys
NameColumns
FK_LicenseMaster_LicenseLicenseKey->[dbo].[License].[LicenseKey]
FK_LicenseMaster_LicenseOrganizationLicenseOrganizationKey->[dbo].[LicenseOrganization].[LicenseOrganizationKey]
FK_LicenseMaster_UserMain_CreatedByCreatedByUserKey->[dbo].[UserMain].[UserKey]
FK_LicenseMaster_UserMain_UpdatedByUpdatedByUserKey->[dbo].[UserMain].[UserKey]
SQL Script
CREATE TABLE [dbo].[LicenseMaster]
(
[LicenseMasterKey] [uniqueidentifier] NOT NULL,
[LicenseKey] [uniqueidentifier] NOT NULL,
[LicenseOrganizationKey] [uniqueidentifier] NOT NULL,
[NamedLicenseCount] [int] NOT NULL CONSTRAINT [DF_LicenseMaster_NamedLicenseCount] DEFAULT ((0)),
[UnnamedLicenseCount] [int] NOT NULL CONSTRAINT [DF_LicenseMaster_UnnamedLicenseCount] DEFAULT ((0)),
[Checksum] [nvarchar] (250) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL CONSTRAINT [DF_LicenseMaster_Checksum] DEFAULT ((0)),
[EffectiveDate] [datetime] NOT NULL,
[ExpirationDate] [datetime] NULL,
[CreatedByUserKey] [uniqueidentifier] NOT NULL,
[CreatedOn] [datetime] NOT NULL,
[UpdatedByUserKey] [uniqueidentifier] NOT NULL,
[UpdatedOn] [datetime] NOT NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[LicenseMaster] ADD CONSTRAINT [PK_LicenseMaster] PRIMARY KEY CLUSTERED ([LicenseMasterKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LicenseMaster_CreatedByUserKey] ON [dbo].[LicenseMaster] ([CreatedByUserKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LicenseMaster_LicenseKey] ON [dbo].[LicenseMaster] ([LicenseKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LicenseMaster_LicenseOrganizationKey] ON [dbo].[LicenseMaster] ([LicenseOrganizationKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LicenseMaster_UpdatedByUserKey] ON [dbo].[LicenseMaster] ([UpdatedByUserKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LicenseMaster] ADD CONSTRAINT [FK_LicenseMaster_License] FOREIGN KEY ([LicenseKey]) REFERENCES [dbo].[License] ([LicenseKey])
GO
ALTER TABLE [dbo].[LicenseMaster] ADD CONSTRAINT [FK_LicenseMaster_LicenseOrganization] FOREIGN KEY ([LicenseOrganizationKey]) REFERENCES [dbo].[LicenseOrganization] ([LicenseOrganizationKey])
GO
ALTER TABLE [dbo].[LicenseMaster] ADD CONSTRAINT [FK_LicenseMaster_UserMain_CreatedBy] FOREIGN KEY ([CreatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
ALTER TABLE [dbo].[LicenseMaster] ADD CONSTRAINT [FK_LicenseMaster_UserMain_UpdatedBy] FOREIGN KEY ([UpdatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
Uses
Used By